﻿// $Id: ErrorMessage.cs 64 2008-05-06 18:29:47Z nvivo $

using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.Text;

namespace DBLGen
{
    [DebuggerDisplay("{Severity}: {Message}")]
    public class ErrorMessage
    {
        public ErrorMessage(ErrorMessageSeverity severity, string message)
        {
            if (message == null)
                throw new ArgumentNullException("message");

            _severity = severity;
            _message = message;
        }

        private ErrorMessageSeverity _severity;
        private string _message;

        public ErrorMessageSeverity Severity
        {
            get
            {
                return _severity;
            }
        }

        public string Message
        {
            get
            {
                return _message;
            }
        }
    }
}
